package com.mysite.angular.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import com.mysite.angular.common.BaseController;
import com.mysite.angular.po.AcMenu;
import com.mysite.angular.service.MenuService;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Controller
@RequestMapping("/sys/menu")
public class MenuController extends BaseController {

	@Autowired
	private MenuService menuService;

	@RequestMapping(value = "/list", method = RequestMethod.GET)
	@ResponseBody
	public List<AcMenu> getMenuList(HttpServletRequest request) {
		return menuService.getMenuList(null);
	}
}
